<?php


namespace app\controller\admin;


use app\result\admin\NoticeResult;
use think\App;

class Notice extends BaseAdmin
{
    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->objResult = new NoticeResult();
    }

    public function list()
    {
        data_exit_json($this->objResult->list($this->param));
    }

    public function get()
    {
        data_exit_json($this->objResult->get(input()));
    }

    public function save_data()
    {
        data_exit_json($this->objResult->save_data(input()));
    }

    public function del_data()
    {
        data_exit_json($this->objResult->del_data(input()));
    }
}
